<template>
	<div class="collection-Result-container">
		<el-form-item label="收集结果数据类型" prop="typeOfCollectedResults" class="label-text" label-width="140px">
			<el-select :value="value" placeholder="请选择收集结果数据类型" :disabled="showDetail" @change="onChange">
				<el-option v-for="item in collectionResultList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
			</el-select>
		</el-form-item>
	</div>
</template>

<script>
import AIWorkflow from '@/modules/talkTemplate';
export default {
	name: '',
	components: {},
	props: {
		prop: {
			type: String,
			default: () => ''
		},
		value: {
			type: String,
			required: true,
			default: () => 'text'
		},
		showDetail: {
			type: Boolean,
			default: () => false
		}
	},
	data() {
		return {
			collectionResultList: []
		};
	},

	mounted() {
		this.collectionResultList = AIWorkflow.collectionResultList;
	},
	methods: {
		onChange(e) {
			this.$emit('input', this.prop, e);
		}
	}
};
</script>

<style lang="less" scoped></style>
